package com.healthyeating.manage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.healthyeating.common.annotation.Excel;
import com.healthyeating.common.core.domain.BaseEntity;

/**
 * 饮食和营养关联对象 tb_assoc_nutrition
 *
 * @author 段奇乐
 * @date 2024-12-30
 */
public class AssocNutrition extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 中间表主键id，自增
     */
    private Long id;

    /**
     * 关联id
     */
    @Excel(name = "关联id")
    private Long assocId;

    /**
     * 关联的营养id，json
     */
    @Excel(name = "关联的营养id，json")
    private String nutritionIds;

    /**
     * 来源表
     */
    private String source;

    /**
     * 饮食名称
     */
    private String dietName;

    /**
     * 饮食名称
     */
    private String ingredients;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setAssocId(Long assocId) {
        this.assocId = assocId;
    }

    public Long getAssocId() {
        return assocId;
    }

    public void setNutritionIds(String nutritionIds) {
        this.nutritionIds = nutritionIds;
    }

    public String getNutritionIds() {
        return nutritionIds;
    }

    public String getDietName() {
        return dietName;
    }

    public void setDietName(String dietName) {
        this.dietName = dietName;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getIngredients() {
        return ingredients;
    }

    public void setIngredients(String ingredients) {
        this.ingredients = ingredients;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("assocId", getAssocId())
                .append("nutritionIds", getNutritionIds())
                .append("source", getSource())
                .append("dietName", getDietName())
                .append("ingredients", getIngredients())
                .toString();
    }
}
